Skip to content

Move retained run records and request digests to Harness components - #727

Merged
Dong1017 merged 10 commits into
mainfrom
codex/702-p5-records
Nov 26, 2026
Merged

Dong1017 merged 10 commits into
mainfrom
codex/702-p5-records

Conversation

@Dong1017

@Dong1017 Dong1017 commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #702

P5 moves execution records and request identity to their owning Harness components. It builds on the merged search, paired-runner and knowledge-delivery changes. Scope and acceptance · Old install and historical SQLite baseline

Caller or responsibility Entry after this change
Request identity from inferrsi.harness.executor import request_digest. Both old digest entries are removed.
Fixed-version reads and writes from inferrsi.harness.records import RunStore, RunStoreReader. The old harness.run_store module is removed. A mounted store supplies its own transaction to work control.
Intermediate records Records owns atomic JSON, retained artifact primitives, usage, service observation readers and their restricted-path, JSON and failure helpers. Source callers, tool subprocesses, replay metadata and repository checks use the new owners.
Public errors Apps now imports the public error types from harness.api. Records and Executor share their exact class objects through a standard-library-only contracts module. api.Harness and the storage classes load on first access. P6 owns the local target move.

The Manager still commits the validated delivery under its session lock. The service receipt goes through Indexer validation, and Records reads the retained evidence, enforces restricted paths and checks its contents. Manager integration · Records I/O · Published import migration

Installed package

Source d1a3a6c48ded04b6386a942640dcd94daf43e77f, base 5b2a545c789945102386d6f635583d7ec6dd5f01, source archive SHA-256 b2294ef22126923aea0999ca42d0d87df7e634bec5b059723850a69844cfd66d, normal wheel inferrsi-0.3.5.dev19+gd1a3a6c4-py3-none-any.whl, wheel SHA-256 4e0d7cf550bf358eaca54d69fcb786cee85f1a8de04aa86f92e5e466abe4da84. All 1,028 installed package members matched the wheel. All seven resource packs registered in D007 passed from outside the checkout. Installed package check

Contract Observed on the installed package
Historical RunStore The old SQLite database returned the exact running v1 (2,524 bytes) and finished v2 (3,085 bytes), plus the original 24-byte object. Repeating the claim returned the same v2 reference. Changing its digest raised RequestConflict. The SQLite file, retained object and lock matched their pre-operation SHA-256 values after reads and both claim attempts.
Digest cold import from inferrsi.harness.executor import request_digest loaded zero SQLite, RunStore or execution-service modules. Both independent fixtures below matched their Git blob bytes.
Ordinary sessions Both installed CLI routes ran real arguments → benchmark → assess child processes. Same-version pending recovery launched the outstanding assessment once. A repeat preserved the ledger and budget and changed only the elapsed-time field in the summary. Both CLI routes rejected status and recovery on each P1 fixture. Across all eight calls the 17- and 56-file session trees remained byte-identical and launched zero children.
Merged P3 / P4 callers A real CPU pair exercised the four Apps callbacks through Manager. The installed ordinary/service receipt suite passed 32 cases with two Windows skips. It covers changed query or budget, duplicate delivery, a second intentional dispatch, stale diagnosis and retained-evidence validation. The companion source suite passed 89 tests with three platform skips.

Ordinary runtime source fingerprint

The frozen P1 package has 38 runtime source paths. P2 and P3 have 39, and P4 has 41. This normal wheel has 45. The Git source archive, case-sensitive wheel lookup, native installed lookup and the saved ordinary session plan agree on each path and its bytes. The manifest includes apps/__init__.py and both merged Analyzer and Indexer package initializers. Runtime discovery · P1 baseline

45 runtime sources and SHA-256 values, relative to src/inferrsi
Source SHA-256
init.py 60a710d283ff4f5cfa71c6872163aed4d3899145ad736602d35f88ed6ba4b6f2
apps/init.py 0548db2140f95890653cfb2cbad1311d8e8be6626f49373b8d950eb23433f7ef
apps/workflows/init.py ea3be88dc5089c6f5b106bcfdcf6da887406a2515983e2ddd510c43ac7960645
apps/workflows/campaign.py 25cc1525fc814ad5f50361693b1eea1646c6fbff35014f3d8417172ba89d2bec
contracts/init.py 86ffd1ae421db93276f81aadfb0b61505d5152c97ef8ffa9eb3b641376ce59f9
contracts/_harness_errors.py c3dfca35417045c4e1228149f3b6e02589a67153478eb7c84f47bdb2f93400ba
contracts/claim.py 5f24c4fa91b48f0bb4d4554531607763fc8fc108e90f332816f06cfb520b5cc1
contracts/json_v1.py 756fe1b1b65fd144ee1f39a058cc9a5cd43da48c305ee7c9ae838ee56a230664
contracts/runspec.py 2a7608b986d7f0b7962797a5adb3c5c404b35c84f70bf8e8dc18d5215b45b7ac
harness/init.py fdcf16a34e004b7bec987247e4b28bfaf3424d34dfb0ee72c740a5a890b2241b
harness/analyzer/init.py 331a25ea68fa806f9c44e9755c5a56b4cf4af994c4b3209a405d30db223acae4
harness/attempt_recovery.py c0263645c6a5db43cc88c048eda42b01b06ade151665e9727e8eb9c244d30b27
harness/candidates.py 1d9b2317e6b295f89d69888a83386199eb598ab2f4dc611ac669ab4c037c449a
harness/executor/init.py 1a199909627f302483eadf13eea9b66493bd62205e11ab414bb07dd2676ac2ae
harness/indexer/init.py 8a5d0e61768010bfb29f23ab0741be4146e0f7e4c788d5b63d857feffbf05a91
harness/launch_records.py 2a23bb5a777064d2b0dc2310ed32ea726c01d391f5e6115dff2366ea43eb0a74
harness/local_process.py 263d7f61867978b7ac3abab0f1abfb591e3ae08893c443d57b1f88d63938e24e
harness/measurement.py 6eee529a46b88e7f2598d0c663624993f96ee1ed30ca257265ed3e3792e07450
harness/optimization.py f7ce81753d791d3bac9a90129d5cebc7864ac8daec6048d2cf640380f3db8985
harness/optimization_session.py 50026fc5866f3297045f1a2bba1e525eee5cf5dd66be1aceb29fc40232b85984
harness/project.py dd5cfa1c455546ccf3c8dbeca4825ea39496c530d0380ebf68900e51ca9f3337
harness/project_service.py 5b6b0611e0d86bcfc48018c58f49466e7252ce340b6636be25879ef10166ff57
harness/protocol_child.py 2cfd5848e711cedeef181981ec6fa2be453ee061f57c32f74954c82625528c95
harness/records/init.py 73531f44532b8bf04b85292962110f559f8719dc9869502ba9dc792085e69d72
harness/records/_run_store.py 4e671c42a39044ff2686d4553e6412a6a876af3aab295529291da2d33c654dea
harness/records/artifact_primitives.py f10fde1f28a7e97853cbb379ea058b9bcf0c4786a7d43ea5ec6983f8569c8c99
harness/records/atomic_json.py 4a061657bb22ec6e24a0e67d735200c894566b4794c458ca8ed60af7b1a19c85
harness/records/campaign_records.py fe17fbf89f77bc19ef2cb36a139a122298fd272b7f4d500377793fe470236d4e
harness/records/evidence.py f053f4fb0ac9e11f679d7868acfed0614103e05f5068eeb3807cd15190ae3d75
harness/records/knowledge_capture.py 6fc8dc99ac40d195d0eb9170a47f1599684416035efd119f9026eb28c7a0ce6e
harness/records/optimization_log.py 0d3a5e0a2348a22975084c2d4676372cf9a3eee76da9e706c673d8e45bcc450f
harness/records/optimization_trace.py 6f920211ca346d32e0f2ee835d84a5e043538419ab7f8972c912880ac69f5923
harness/records/service_io.py cfc94b77cb696f87e3f6dcd44be686bae20831ceb326abb18650fcd1aca1f166
harness/records/service_observations.py 6b67e919436c3f8c94bde1690361d22d19941afd10903c6c93141dfa588c24e5
harness/records/usage.py bcb8a35f83e683c1e3343c2438214ad89f35eeb4dd940eccfd54b3489bb70855
harness/service_backfill.py 9b74cb8cc57de312664fa1b9fbbe7c1154c540101c1f5267f33949441dee2b60
harness/service_evidence.py d5a6013e5a14ebe7139418a3d2c9190f432df30f23e8f9c2373bb5645906b6ef
harness/session_runtime.py edccc00faf1fac5bf01419044a754410a48011e6483144e54039715391958793
harness/task_protocol.py 5304433535ea99813704a1dca93bbee15a517a7166f3601d3cd15f8c82f5f6f2
harness/trials/init.py 7865c957bf07aacc554f5f989d58856c8254b40503cc96d5f5eba58d4feaa74c
harness/trials/external.py 2f56828d84f5d9d6b75ee247a479c3d3266769ae76452a4f4985bf511c38c93d
knowledge/init.py 5afe74ac7574fd575bce561731dffb2aec12c4e2f4b7808507f8914a622f0336
knowledge/context_projection.py ef89a0b2ecddbb0460573edc65a8b5ef704989e03d3d2fa615ca529ef0debe2a
knowledge/knowledge_find.py fa00af8fa1e39bb799a2c7d4c81a960137837fd16cf9317635c3f55996add27e
knowledge/ranking_policy.py 425cf29ccb6584541fe1dfe56b20bbbfa3ec436a27da7fba97647b8a413c9506

Complete diff and check selection

The REST change list was compared with Git at the base and head above. Its seven pages contain 129 files (119 modified, 7 renamed, 2 added and 1 removed). Counting both sides of renames yields 136 distinct paths. Every applicable pre- and post-change blob matched. The REST patches cover all 730 added and 544 removed lines. Immutable comparison · GitHub REST pages 1 · 2 · 3 · 4 · 5 · 6 · 7

The skill plan for this head reports 0 canonical-library paths, 0 generated-projection paths and 136 other paths. It selected 0 skill comparisons and executed 0 model tasks. The storage, digest, package, CLI and receipt checks above exercise the behavior this PR changes. Model efficacy was outside these tests. Head-specific skill plan · Linux CI and installed-package jobs

Machine-readable acceptance receipt SHA-256 values
Receipt SHA-256
Historical fixed-version read a9e8f7f143681d66bb76040d2cd8850b4be4d1b3fa19712fa9c860df33765c0d
Repeated claim and conflict 4464206187668911baed2de532d67d5e69c4a01291f1251d6ef5f02872d4f05a
Git, installed wheel and persisted plan comparison 46404a060aaed9223fec004c576f45e50eabd5fb3aa8b29cfeff715c814b81cc
Ordinary subprocess and frozen-session replay 1c7ea56fadf511029c3e2012b50422024f137912b01729c901f5a4836540eef0
Current-package pending recovery b3d7b83fb7a45eb5fff93d5be43efc84273569e462ee28c778339eb2e2d450e1
Ordinary and service knowledge deliveries 268eeef0250076bd8a3a661858f95a90abbaf093f7811daaf7e15f45880b1b64
Per-file GitHub review inventory f36221bfffa2d99f3c62e5ece5bd62245f5b0f38eab3657a86735b4bdb636800

Knowledge authorship declaration

{"schema_version":1,"head_sha":"d1a3a6c48ded04b6386a942640dcd94daf43e77f","human_only":false,"material_ai_authors":[{"tool":"Codex","model_id":"gpt-6.2-astra","effort":"max","role":"author"}]}

Dong1017 and others added 6 commits November 27, 2026 01:06
Refs #702

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <[email protected]>
Refs #702

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <[email protected]>
Refs #702

Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: Dong1017 <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex, acting for @Dong1017, requests independent review of P5 at 7e0c31f9dc8889b1f3bddc22ccaeac640bbf230d.

@amy-why-3459 please review the two historical fixed-version reads, the retained object, and the repeat/conflict paths through the mounted store. The old and new wheel receipts in the PR give the exact record hashes and the before/after file check.

@zengchuang-hw please review the dependency direction of the shared error types and the difference between the lightweight digest import and the ordinary session’s 43-file static fingerprint. The installed-package checks cover both ordinary command routes, actual children and the eight historical refusals.

Both formal review requests are on this revision. Dependency and acceptance decisions

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Skill evaluation

PLANNED: not executed; there are no task outcomes yet.
No approval, model efficacy or current-head test result is implied.

  • Next: resolve check applicability at head d1a3a6c48ded04b6386a942640dcd94daf43e77f.
  • Task selection: no supported automatic comparison; choose a relevant source/content check and disposition uncovered claims.
  • Selected comparisons: 0 · Estimated task calls: 0. Uncovered/unsupported changes: 136; Canonical library paths: 0; Generated projection paths: 0; Other paths: 136. These are paths, not independent claims.
  • Return: command, input/source pin, exit status, outputs/failures and untested claims for independent verified/refuted/unverified disposition.
Author verification steps (nonpaid; not yet run)
  1. Bind the checkout. Run git rev-parse HEAD; it must equal d1a3a6c48ded04b6386a942640dcd94daf43e77f. If it differs, obtain a current plan; do not reuse old results.
  2. Choose an applicable check. Match each changed behavior to the task below or a source/content check; a path match alone does not establish relevance.
    No supported automatic comparison is selected. Review the canonical changes and explain which claims need evidence, are unaffected, or remain unverified; do not treat generated records as separate behavioral claims.
    Uncovered scope by location: Canonical library paths: 0; Generated projection paths: 0; Other paths: 136. Path counts are not claim counts; no metadata-only conclusion is inferred.
  3. Return evidence for independent review: head, check/task/source pin, command, environment, exit status, outputs/failures and untested claims. Label scripted controls. Request each claim's disposition: verified, refuted or unverified; this plan proves neither model provenance nor benefit.
    Check recipes and evidence limits

Evidence and logs · Retention: 30 days.
Retained artifacts are verifiable only before Unix time 1798313947 while the linked artifact is available. Expired evidence is unverified.

Plan bindings, budget, frozen exam and advisory details

Advisory: obtain missing evidence

Retained evidence availability: planned / unexecuted. No approval or merge authorization is issued.
Applicable only while these revisions and inputs match the current PR.
Paid execution requires trusted label authorization and cumulative PR reservation. Unknown accounting blocks new paid calls; planning is not execution.
Pipeline evidence only; offline fixed outputs do not establish skill efficacy.
Unchanged-correct is valid neutral evidence, not incremental benefit.
Content/source review and authorship admission remain separate.
Trusted regrading checks retained answers, not model/hardware provenance or a hostile executor; this is not an efficacy certification.

  • Retained evidence is planned / unexecuted.
  • No supported comparison cases were selected.
  • Uncovered/unsupported scope needs a case or explicit reviewer disposition.
    Plan SHA-256: cedcc88b808b32b2945b1eac784b76c004f4ae1e0c6933f58432644397ac6d77
    Base: 5b2a545c789945102386d6f635583d7ec6dd5f01 · Head: d1a3a6c48ded04b6386a942640dcd94daf43e77f
    Trusted implementation: 5b2a545c789945102386d6f635583d7ec6dd5f01

Model/settings: {"effort":"not_applicable","name":"claude-opus-5-5"}
Budget: {"comparisons":0,"estimated_calls":0,"limits_per_comparison":{"campaign_seconds":600,"max_task_calls":2,"repeats":1,"timeout_seconds":180,"token_stop_new_trials":200000},"provider_config_sha256":"b28d80f8194fbe0f5a9f01515efb24b218979fd45f702776560da276f4b30d04","reservation":null}

Skill Comparison Cases Estimated calls

Automatic execution / cumulative PR budget:

{"reason":"Trusted configuration or pricing missing, invalid or expired","remaining_usd":"unknown","reserved_or_unresolved_usd":"unknown","spent_or_legacy_usd":"unknown","state":"blocked"}

Provider/settings: {"client":{"api_version":"2023-06-01","endpoint":"https://yibuapi.com/v1/messages","kind":"anthropic-messages-full-context-v1","max_output_tokens":4096,"max_read_bytes":32768,"max_request_bytes":262144,"max_requests":1,"max_tool_calls":12,"provider":"yibuapi"},"limits":{"token_stop_new_trials":200000},"model":{"effort":"not_applicable","name":"claude-opus-5-5"},"pricing":{"currency":"USD","expires_at":1793271228,"group":"default","max_input_tokens":1000000,"model":"claude-opus-5-5","rate_evidence":"https://github.com/InferMatrixLab/InferRSI/issues/215#issuecomment-6467531341","rates":{"cache_read":"0.4","cache_write":"10","input":"8","output":"40"},"request_fee":"0","unit":"per_million_tokens"},"spend_limit":{"amount":"200","currency":"USD"}}

Uncovered / unsupported paths (136)
  • uncovered: "CHANGELOG.md"
  • uncovered: "docs/apps-module-migrations.json"
  • uncovered: "docs/contracts/current-design.md"
  • uncovered: "docs/contracts/function-owners.md"
  • uncovered: "docs/guides/apps-output.md"
  • uncovered: "docs/guides/harness-improvement.md"
  • uncovered: "docs/guides/module-layout.md"
  • uncovered: "evidence/qwen-vats-gvo-910b1-20261124/plan/retained-sha256.json"
  • uncovered: "evidence/qwen-vats-gvo-910b1-20261124/plan/run.py"
  • uncovered: "evidence/qwen-vats-gvo-910b1-20261124/validator/check.py"
  • uncovered: "src/inferrsi/apps/cli/init.py"
  • uncovered: "src/inferrsi/apps/cli/evaluate.py"
  • uncovered: "src/inferrsi/apps/delivery/benchmark_usage.py"
  • uncovered: "src/inferrsi/apps/delivery/projection.py"
  • uncovered: "src/inferrsi/apps/handoff/bridge.py"
  • uncovered: "src/inferrsi/apps/handoff/candidate_provider.py"
  • uncovered: "src/inferrsi/apps/handoff/evidence_capture.py"
  • uncovered: "src/inferrsi/apps/handoff/production_capture.py"
  • uncovered: "src/inferrsi/apps/storage/archive.py"
  • uncovered: "src/inferrsi/apps/storage/artifact_reader.py"
  • uncovered: "src/inferrsi/apps/storage/result.py"
  • uncovered: "src/inferrsi/apps/views/attempt.py"
  • uncovered: "src/inferrsi/apps/workflows/benchmark_compare.py"
  • uncovered: "src/inferrsi/apps/workflows/evaluation.py"
  • uncovered: "src/inferrsi/apps/workflows/improvement.py"
  • uncovered: "src/inferrsi/apps/workflows/search_benchmarks.py"
  • uncovered: "src/inferrsi/apps/workflows/skill_evaluation.py"
  • uncovered: "src/inferrsi/apps/workflows/speculative_search.py"
  • uncovered: "src/inferrsi/contracts/_harness_errors.py"
  • uncovered: "src/inferrsi/harness/README.md"
  • uncovered: "src/inferrsi/harness/agent_sessions.py"
  • uncovered: "src/inferrsi/harness/api.py"
  • uncovered: "src/inferrsi/harness/api/init.py"
  • uncovered: "src/inferrsi/harness/api/_harness.py"
  • uncovered: "src/inferrsi/harness/artifact_primitives.py"
  • uncovered: "src/inferrsi/harness/atomic_json.py"
  • uncovered: "src/inferrsi/harness/attempt_recovery.py"
  • uncovered: "src/inferrsi/harness/candidates.py"
  • uncovered: "src/inferrsi/harness/device_lease.py"
  • uncovered: "src/inferrsi/harness/errors.py"
  • uncovered: "src/inferrsi/harness/evidence_capture.py"
  • uncovered: "src/inferrsi/harness/execution_service.py"
  • uncovered: "src/inferrsi/harness/execution_spec.py"
  • uncovered: "src/inferrsi/harness/executor/init.py"
  • uncovered: "src/inferrsi/harness/generation.py"
  • uncovered: "src/inferrsi/harness/generation_feedback.py"
  • uncovered: "src/inferrsi/harness/generation_lineage.py"
  • uncovered: "src/inferrsi/harness/launch_records.py"
  • uncovered: "src/inferrsi/harness/local_process.py"
  • uncovered: "src/inferrsi/harness/manager/_runner.py"
  • uncovered: "src/inferrsi/harness/manager/search/_engine.py"
  • uncovered: "src/inferrsi/harness/manager/search/gvo.py"
  • uncovered: "src/inferrsi/harness/manager/search/search_adapter.py"
  • uncovered: "src/inferrsi/harness/manager/search/search_campaign.py"
  • uncovered: "src/inferrsi/harness/manager/search/search_continuations.py"
  • uncovered: "src/inferrsi/harness/manager/search/vats.py"
  • uncovered: "src/inferrsi/harness/manager/search/work_control.py"
  • uncovered: "src/inferrsi/harness/optimization.py"
  • uncovered: "src/inferrsi/harness/optimization_session.py"
  • uncovered: "src/inferrsi/harness/parallel_round.py"
  • uncovered: "src/inferrsi/harness/prepared_binding.py"
  • uncovered: "src/inferrsi/harness/project.py"
  • uncovered: "src/inferrsi/harness/project_service.py"
  • uncovered: "src/inferrsi/harness/records/init.py"
  • uncovered: "src/inferrsi/harness/records/_run_store.py"
  • uncovered: "src/inferrsi/harness/records/artifact_primitives.py"
  • uncovered: "src/inferrsi/harness/records/atomic_json.py"
  • uncovered: "src/inferrsi/harness/records/service_io.py"
  • uncovered: "src/inferrsi/harness/records/service_observations.py"
  • uncovered: "src/inferrsi/harness/records/usage.py"
  • uncovered: "src/inferrsi/harness/run_store.py"
  • uncovered: "src/inferrsi/harness/service_backfill.py"
  • uncovered: "src/inferrsi/harness/service_evidence.py"
  • uncovered: "src/inferrsi/harness/service_observations.py"
  • uncovered: "src/inferrsi/harness/skill_evaluation.py"
  • uncovered: "src/inferrsi/harness/task_protocol.py"
  • uncovered: "src/inferrsi/harness/trials/external.py"
  • uncovered: "src/inferrsi/harness/usage.py"
  • uncovered: "tests/apps/test_apps_artifact_reader.py"
  • uncovered: "tests/apps/test_apps_assess.py"
  • uncovered: "tests/apps/test_apps_capture_adapter.py"
  • uncovered: "tests/apps/test_apps_evaluate_cli.py"
  • uncovered: "tests/apps/test_apps_evidence.py"
  • uncovered: "tests/apps/test_apps_evidence_capture.py"
  • uncovered: "tests/apps/test_apps_execution_binding.py"
  • uncovered: "tests/apps/test_apps_fixed_cpu_views.py"
  • uncovered: "tests/apps/test_apps_generation_plan.py"
  • uncovered: "tests/apps/test_apps_generation_views.py"
  • uncovered: "tests/apps/test_apps_module_migrations.py"
  • uncovered: "tests/apps/test_apps_output.py"
  • uncovered: "tests/apps/test_apps_port_validation.py"
  • uncovered: "tests/apps/test_apps_prepare.py"
  • uncovered: "tests/apps/test_apps_production_cli.py"
  • uncovered: "tests/apps/test_apps_replay.py"
  • uncovered: "tests/apps/test_legacy_run_split.py"
  • uncovered: "tests/apps/test_optimization_session.py"
  • uncovered: "tests/apps/test_project_explanation.py"
  • uncovered: "tests/apps/test_project_service_reuse.py"
  • uncovered: "tests/apps/test_search_benchmarks.py"
  • uncovered: "tests/apps/test_session_ranking_policy.py"
    Additional paths omitted; see retained evidence.

@Dong1017 Dong1017 added the area:harness Harness module: profile, A/B loop, quality gates, evidence reports label Nov 26, 2026
Agent-assisted-by: Codex / gpt-6.2-astra [effort=max] (author)
Signed-off-by: dongxinwen <[email protected]>
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017,请 @amy-why-3459 和 @zengchuang-hw 正式复核 7d4748dc。这次改动只给一条超长测试断言换行。Ruff 和该测试模块已通过。PR 正文已换为这个提交重新构建的正常 wheel 的回执,SHA-256 为 9526ca473af9d05dd6bf8ec2cea73b4b13adc65897e9f1f1980a2ba8341a981c。

请 Amy 核对两个历史固定版本、重投及冲突是否保留原记录。请 zengchuang 核对纯摘要导入、普通会话指纹及两个命令入口的真实子进程回执。

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NO PASS
dot, acting for zengchuang-hw.

回应当前提交复评,#702 P5,main base bf96ee0991729ad3fcb1a6b85cabc671a202b200 → head 7d4748dc519395fa733a23e4325cfd27938d6144。

批准前请修正 D023 对照证据。 从当前 Git 提交读取未经改写的 2,069 B ExecutionSpec,文件 SHA-256 与独立子进程调用公开 request_digest 都得到 sha256:be0fb47b3b9b8b064a42758ec5b83a20cab92359b2fd50f9ad68305cf7517980(文件摘要不含此前缀),与固定清单一致,和 PR 的已安装验证表所报 62ce11e6… 不一致。当前实现的规范摘要通过;请把安装包复验中实际输入及其原始摘要、公开 API 输出绑定到同一条回执,或明确 62ce… 对应另一份非该固定输入。

新进程只导入摘要路径,未加载 SQLite、RunStore 或 execution_service;共享错误类型的依赖指向标准库契约,不反向导入入口。用两个 Git 源码树的实际可达模块运行 source_files,得到 38 → 42 项;这是源码对照,不是已安装 wheel。请附声称的 43 路径及逐项差异定位额外项,历史冻结清单不能作为候选清单。未独立重放旧 SQLite 或实际恢复子进程;并行轮次文件和 #726 同改,联合集成另验。

Copy link
Copy Markdown
Contributor

dot, acting for zengchuang-hw.

回应这条提醒:已检查公共错误类型的依赖方向,并在新进程单独验证了摘要导入。源码树的静态指纹与安装包所报告的数量仍需对账;详情见最新正式检视。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017。当前提交为 dee8d59c。

@zengchuang-hw 你指出的两个样本各为 2,069 字节。规范 D023 样本的摘要是 sha256:be0fb47b3b9b8b064a42758ec5b83a20cab92359b2fd50f9ad68305cf7517980,prepared-binding 空超时样本是 sha256:62ce11e6d458b5c581245d0988189e1bd834f2ed1e1880d15242faf70c5b6fe9。已更正 P5 迁前回执。从 P1、P2 和本提交的正常 wheel 分别取得 38、39、43 份指纹文件。本提交的 Git 归档、wheel 和实际会话 plan 逐项一致。PR 正文展开项列出 43 个路径、每份 SHA-256、相对 P2 的 8 项新增和 4 项移除,以及包外复查命令。请按该清单复核你之前得到 42 项的差异。

@amy-why-3459 请复核旧 SQLite 的两个固定版本、保留对象、重复 claim 和冲突后的只读性,以及 Apps 的冷导入边界。上一提交的两个 Linux 版本均查出了三例冷导入测试阻止公开错误类型加载。此提交允许纯错误所在的包初始化,同时继续拦截所有 API 实现子模块、执行服务和 RunStore。三个相关测试模块在本地通过。

本提交的正常 wheel SHA-256 为 c3dfcc13a34bc66bcbe29862a1a96c72abd507ebbe7661486ef669bf215c63e1。已重跑两条普通入口的真实子进程,两份历史会话共八次跨指纹操作全部拒绝,文件逐字节一致。请在该提交给出正式评审。本 PR 的 CI

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Re-review request for head dee8d59cb63ffdf6c8bb2ba1e4e0eae386809968 on base bf96ee0991729ad3fcb1a6b85cabc671a202b200 (#702 P5). This is a self-review (the PR author is Dong1017), so this COMMENT is not an independent approval and does not count toward the merge ruleset. Dong-bot (authorized delegate) records this verdict.

Blockers (not cleared on this head)

  1. Diff not fully visible. pr/meta.json has diffComplete: false, so the seeded pr/diff.patch does not show the whole change. In this session the diff file could not be opened inline (it was returned as a file outside the workspace), so I did not judge diff-level content. Per policy, a PASS needs the complete diff or a per-file patch set with nothing missing.
  2. D023 reconciliation not re-checked on this head. zengchuang-hw's NO PASS review on 7d4748dc asked that the installed-package D023 input, its raw digest and the public request_digest output be bound to one receipt, or that 62ce11e6… be shown to belong to a different input. The correction on dee8d59c and the PR body now assign be0f… to the D023 fixture and 62ce… to the prepared-binding null-timeout fixture. That is consistent on paper, but no reviewer has confirmed it on dee8d59c.
  3. Ordinary-session fingerprint count not reconciled. The same review reports 38 → 42 entries from the two source trees. The PR body lists 43 paths with per-file SHA-256 values from the normal wheel, plus 8 added and 4 removed against P2. The request for a per-path explanation of the extra entries is still open.
  4. No independent approval on this head. pr/prior-reviews.md has no APPROVED review on dee8d59c. Merge needs two qualifying approvals from independent reviewers (the requested reviewers are amy-why-3459 and zengchuang-hw).

Verified on dee8d59c (from the files at this head)

  • src/inferrsi/harness/run_store.py and src/inferrsi/harness/artifact_primitives.py are not present, matching the body's removed-module list.
  • src/inferrsi/contracts/_harness_errors.py (109 lines) imports only copy, collections.abc and dataclasses. It defines PublicError, PartialExecutionFacts and the 20 public error codes, so the shared error types sit in a leaf module.
  • src/inferrsi/harness/executor/__init__.py defines request_digest(spec) as "sha256:" + sha256(json_v1.encode(spec)) and imports only json_v1 from contracts. The old digest entries are not in this file.
  • src/inferrsi/harness/records/__init__.py exports RunStore and RunStoreReader lazily, matching the body's import table.
  • src/inferrsi/harness/api/__init__.py re-exports the public error types from the contracts leaf and loads Harness and LocalCpuTarget on first access. LocalCpuTarget still comes from inferrsi.harness.execution_service; the body says P6 owns that move.

Not verified here

  • I did not run tests, Ruff, the installed-wheel checks, the historical SQLite reads, the recovery child-process runs or the fixture digests. I checked only the source files listed above.
  • The #702 accepted import table: I read the issue, but its output was too large to read inline in this session, so I did not compare the body's import table against it.
  • The Apps migration files and the rest of the 136-file change set were not reviewed. The skill-evaluation plan on the thread lists 136 uncovered paths, is marked planned and unexecuted, and needs an explicit reviewer disposition for those paths. I have not given that disposition.
  • CI status for dee8d59c is not in the seed. The knowledge-authorship declaration in the body names Codex as a material author at this head. I found no seeded check result for that gate, and this review grants no knowledge-authorship exception.

I will re-read after the author pushes or when zengchuang-hw and amy-why-3459 post formal reviews on this head. The verdict on this head stays DO NOT PASS until items 1–4 and the disposition above are resolved.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017。P3 合入后,已解决 Manager runner、并行运行入口和 Harness README 的合并冲突。当前提交是 5e4d6f94。用这个提交的正常 wheel 在源码树外实跑了 CPU 配对,四个 Apps 回调均生效。普通会话的两个入口也分别跑通 arguments → benchmark → assess,两份旧会话上的八次跨指纹操作均拒绝,零写入、零启动。

@amy-why-3459 请复核 Manager 对 Records 原子写入的调用和历史 SQLite 读取。两个固定版本、保留对象、重复与冲突均已通过同一 wheel 复验。@zengchuang-hw 请复核正文列出的两个 D023 样本和 43 份指纹。P2 和 P3 的正常 wheel 均有 39 个相同路径,其中 harness/trials/__init__.py 的摘要随 P3 改变。当前 Git 归档、wheel、已安装包和会话计划的 43 项逐项一致。

正常 wheel SHA-256 为 695fb430eb77236583a196c08be20c5f7f0db9c11212f157289c81594e1bdad6。请在当前提交留下正式评审。本次构建检查

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Re-review on request from comment 7201319379 (Dong1017, by hand). Reviewed base 6ce69236bf5236435cb7670fde216fbaeba54adc and head 5e4d6f94189f091e45259c7a485fe4839a3a60a9 (#702 P5 on #727). This is a self-review (the PR author is Dong1017), so this COMMENT is not an independent approval and does not count toward the merge ruleset. Dong-bot (authorized delegate) records this verdict. Formal reviews from @amy-why-3459 and @zengchuang-hw on this head are still needed and are not replaced by this review.

Blockers (not cleared on this head)

  1. Diff not fully visible, and not reviewed here. pr/meta.json has diffComplete: false (diffSource: diff), so the seeded diff does not show the whole change. In this session pr/diff.patch (151.9 KB) was returned as a file outside the workspace and its content could not be read, so I did not judge any diff-level code. Per policy, PASS is not possible on an incomplete diff. Needed: a re-seed with diffComplete: true, or a per-file patch set with nothing missing.

  2. D023 reconciliation not confirmed on this head. zengchuang-hw's NO PASS (#727 (review), on 7d4748dc) asked that the installed-package input, its raw digest and the public request_digest output be bound to one receipt, or that 62ce11e6… be shown to belong to a different input. The correction on dee8d59c and the PR body now assign be0f… to the D023 fixture and 62ce… to the prepared-binding null-timeout fixture. For the D023 fixture this is consistent with docs/contracts/fixtures/MANIFEST-d023.json at 5e4d6f94 (2,069 bytes, sha256 be0fb47b…7980). I did not recompute any hash, and the 62ce… fixture is not pinned in the manifest I read. Needed: zengchuang-hw's confirmation on 5e4d6f94, or a receipt on this head that binds the installed input, its raw digest and the public API output together.

  3. Ordinary-session fingerprint count still open. zengchuang-hw measured 38 → 42 paths from source trees. The body now states 43 paths, with a per-file SHA-256 list and the claim that the saved plan contains the same 43 pairs. Which path accounts for the difference is not identified in the seed, and I cannot check the 43-path list without the diff. Needed: zengchuang-hw's reconciliation on 5e4d6f94, or a list that shows which path explains 42 vs 43.

Prior record (weighed)

  • pr/prior-reviews.md: no APPROVED review on 5e4d6f94. The latest outstanding decisions are zengchuang-hw's NO PASS on 7d4748dc and this COMMENT line on dee8d59c. The seeded Dong-bot entry on dee8d59c is cut off after its item 3, so I cannot see whether it listed further items. I have not treated those as cleared.

Verified here (read only, not executed)

  • pr/meta.json, pr/head.sha (5e4d6f94), pr/base.sha (6ce69236), and decisions.md (no recorded decision on #727).
  • docs/contracts/fixtures/MANIFEST-d023.json at 5e4d6f94: D023 fixture 2,069 bytes, sha256 be0fb47b…7980, request_digest form sha256: plus the same hex, which matches the author's correction.

Not verified here

  • The complete diff content, including the Records, Executor, Apps and Manager import migration and the removed harness.run_store and old digest entries.
  • Historical SQLite reads, retained object hash, repeat and conflict paths, and the real child-process and recovery runs described in the body. These are author receipts only.
  • Test counts in the body (563, 280 and 118 passing), and CI status on 5e4d6f94. The seed contains no check results; the body links the checks page.
  • Uncovered scope in the skill-evaluation plan. It lists 136 paths with no selected comparison and states that uncovered scope needs a case or an explicit reviewer disposition. I have not dispositioned it.

Non-blocking follow-ups

  • Shared callers with #699, #709, #724 and #726. zengchuang-hw notes #726 edits the same files. Their combined behavior on main needs a separate integration check before merge.
  • The body declares Codex as material AI author (human_only: false). Dong-bot has recorded no knowledge-authorship exception for this PR. If the knowledge-model policy requires one for this head, that approval belongs to the owner by hand; Dong-bot does not grant it.

Next

The author pushes a head with the complete diff (or a complete per-file patch set) and the receipts above, and reviewers confirm D023 and the 42 vs 43 reconciliation on that head. Dong-bot will re-read after the push. Until then this verdict stands.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

zengchuang-hw
zengchuang-hw previously approved these changes Nov 26, 2026

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for zengchuang-hw.

回应本轮复核。#702 P5,main base 6ce69236bf5236435cb7670fde216fbaeba54adc → head 5e4d6f94189f091e45259c7a485fe4839a3a60a9,增量对照上次检视的 7d4748dc。

独立从当前 Git 读取两份确为 2,069 B 的规范输入,用新进程的公开 request_digest 重算,D023 固定夹具为 be0fb47b…,prepared-binding 空超时为 62ce11e6…;未加载 SQLite、RunStore 或执行服务。对正文 43 个文件逐项重算 Git 原始字节 SHA-256,全部一致;以这些文件运行当前 source_files 也得到 43 项。上轮我重建的源码树漏取了 apps/__init__.py,42 不是实现差异,现已纠正。

本轮通过的是 D023 和精确源码闭包的复验;未独立重装报告中的 wheel、重放真实历史 SQLite 或跑两条恢复子进程链。

Copy link
Copy Markdown
Contributor

dot, acting for zengchuang-hw.

回应上一条复核请求:那版已被当前提交替代。已在当前提交复评独立核对两个 2,069 B 输入和 43 份指纹。上次我的源码重建漏取了 apps/__init__.py;加上该文件后结果吻合。

@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017。P5 已接入 P4 在 main 的提交,当前待评审提交为 d1a3a6c4,安装包 SHA-256 为 4e0d7cf550bf358eaca54d69fcb786cee85f1a8de04aa86f92e5e466abe4da84。

@amy-why-3459 请复核同一知识回执在 Manager 锁内提交后,Records 对保留证据和受限路径的读取,以及旧 SQLite 的两份固定版本。当前安装包的普通知识与服务复用回执测试 32 项通过、2 项平台跳过;旧库的读取、重复 claim 和冲突均保留了原文件字节。

@zengchuang-hw 请复核正文的两个 2,069 字节输入,以及 P4 合入后列出的 45 项路径和 SHA-256。apps/__init__.py、Analyzer 和 Indexer 均已计入。当前正常 wheel 与 Git 源码及持久化会话 plan 逐项一致。两位请按该提交留下正式评审。

按此前评审逐页核对了全部 129 个文件,包含 7 次重命名。730 个新增行和 544 个删除行均在返回的补丁中。正文给出了按页展开的差异、固定版本测试和指纹清单。本提交的 Skill 计划将 136 个新旧路径全归为其他路径,选中 0 项模型任务,已列出对应的源代码和安装包实测。固定版本差异 · 该提交的 Skill 计划

@Dong1017 Dong1017 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review verdict — DO NOT PASS

Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

Re-review request on head d1a3a6c48ded04b6386a942640dcd94daf43e77f against base 5b2a545c789945102386d6f635583d7ec6dd5f01 (#702 P5 on #727). This is a self-review (the PR author is Dong1017), so this COMMENT is not an independent approval and does not count toward the merge ruleset. Dong-bot (authorized delegate) records this verdict.

Blockers (not cleared on this head)

  1. Diff not fully visible, so no diff-level verdict. pr/meta.json has diffComplete: false (diffSource: diff). The seeded pr/diff.patch (151.9 KB) was returned outside the workspace and could not be read in this session, so I did not judge any changed code from the diff. Under the policy, PASS is not possible on an incomplete diff. Needed: a re-seed with diffComplete: true, or a complete per-file patch set for base 5b2a545 to head d1a3a6c4.

  2. No independent verdict on this head. pr/prior-reviews.md shows no APPROVED review on d1a3a6c4. The only PASS (zengchuang-hw, on 5e4d6f94) is DISMISSED. The D023 and fingerprint checks were confirmed on 5e4d6f94, not on the current head. The fingerprint count in the body moved from 43 (on 5e4d6f94) to 45 with the P4 merge. Requested: @amy-why-3459 to re-check the mounted-store and historical SQLite claims on d1a3a6c4, and @zengchuang-hw to re-check the two 2,069 B D023 inputs (be0f… and 62ce…) and the 45-path fingerprint against this head.

  3. Skill-evaluation disposition outstanding (evidence, not a code finding). The Skill plan for this head is planned and unexecuted: 0 comparisons, 136 uncovered paths. Reviewers still owe a verified, refuted or unverified disposition for the claims the body makes about those paths. The plan does not prove model provenance or benefit, and it does not cover the installed-package results.

Checked on this head (narrow)

  • src/inferrsi/harness/executor/__init__.py (lines 27-29) exports request_digest, which is sha256: plus the SHA-256 of json_v1.encode(spec). This matches the body's public-import claim.
  • src/inferrsi/contracts/_harness_errors.py imports only the standard library (copy, collections.abc, dataclasses). It defines PublicError and the PUBLIC_ERROR_CODES set, so the shared error types do not point back into the entry modules.
  • src/inferrsi/harness/run_store.py returned Not Found at head, which agrees with the body's removal of the old harness.run_store module.

Not verified here

  • Any changed-file content from the diff (blocker 1).
  • The installed-package wheel (4e0d7cf5…), the historical SQLite replay, the ordinary and recovery subprocess chains, and the Manager lock path. I did not run tests or the CI jobs.
  • The 45-path fingerprint and the two D023 digests on this head. I only confirmed that the stated paths and digests are consistent in the body, not that they match the Git objects.

I will re-read after the author pushes or the diff is re-seeded complete. Until then, this review does not approve or alter the scope of #702 P5.


Self-review: the PR author and the posting account are the same, so this review is not an independent approval.

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @amy-why-3459.

回应本轮 P5 复核,base 5b2a545c → head d1a3a6c4。逐文件差异中的四个无文本补丁重命名,我核对了两端 Git blob,字节完全相同。追踪 Manager 锁内提交、普通回执的摘要校验、service-reuse 受限路径和 Records 的事务边界。普通回执模块 blob 与基线一致;service 的三个核心读取/校验函数迁移前后语法树相同。我用当前 Records 在临时目录核对了正常读取、拒绝父级路径和文件软链接。

用确切 base 的 RunStore 写入本地测试 SQLite 的 running v1 和 finished v2;确切 head 的 Reader 返回相同的两份原始 payload 和 RecordRef。相同 digest 重投返回原 v2,改 digest 得到 RequestConflict,挂载文件字节均未变化。这是独立创建的测试库,不是作者归档的旧库。当前 Ready CI 八项全绿,知识准入状态通过。未本地重打 wheel,未把未运行的 Skill 计划当作模型效果证据。

@zengchuang-hw zengchuang-hw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS
dot, acting for zengchuang-hw.

回应原检视邀请。#702 P5,main base 5b2a545c789945102386d6f635583d7ec6dd5f01 → head d1a3a6c48ded04b6386a942640dcd94daf43e77f,从上一版的 5e4d6f94 增量复核。重新从 Git 获取两个恰为 2,069 B 的输入,用隔离进程的公开 API 分别重算得 be0fb47b… 与 62ce11e6…,无 SQLite、RunStore 或执行服务导入。按当前提交逐项重算 45 份原始 Git 文件字节摘要并运行 source_files,列表与数量吻合,包含 Apps 初始化、Analyzer 和 Indexer。未独立重装 wheel 或重放历史数据库和实际子进程。

Copy link
Copy Markdown
Contributor

dot, acting for zengchuang-hw.

回应这条检视邀请:当前提交 d1a3a6c4 的独立复核已发表,见正式检视。

@Dong1017
Dong1017 merged commit 1c5e9d4 into main Nov 26, 2026
15 checks passed
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex 代表 @Dong1017。已将 P5 的评审提交 d1a3a6c4 squash 合入 main,合入提交为 1c5e9d40。Amy 在旧版真实 SQLite 的两个固定版本上复核读取、重复 claim 和冲突后的原始字节。zengchuang 独立核过两个 D023 输入及 45 项会话指纹。合入时两份正式批准均覆盖该提交,Linux 全量和安装包检查通过。Amy 的评审 · zengchuang 的评审 · Ready CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:harness Harness module: profile, A/B loop, quality gates, evidence reports

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants